package com.hcss.qywechat.app.service.impl;

import com.hcss.qywechat.app.dao.WQyAppMapper;
import com.hcss.qywechat.app.model.WQyApp;
import com.hcss.qywechat.app.model.WQyAppExample;
import com.hcss.qywechat.app.service.WQyAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @描述:
 * @作者: xuqian
 * @创建日期: 2018-12-17 11:20
 * @公司 浙江鸿程计算机系统有限公司
 */
@Service("wQyAppService")
public class WQyAppServiceImpl implements WQyAppService {
    @Autowired
    private WQyAppMapper wQyAppMapper;

    @Override
    public List<WQyApp> getAllAppByCorpidWithSecret(String corpid) {
        WQyAppExample example = new WQyAppExample();
        example.createCriteria().andCorpidEqualTo(corpid).andSecretIsNotNull();
        return wQyAppMapper.selectByExample(example);
    }
}
